//
//  TableCellOneForCollectionFour.m
//  喜马拉雅FM
//
//  Created by dllo on 16/1/28.
//  Copyright © 2016年 lanou.com. All rights reserved.
//

#import "TableCellOneForCollectionFour.h"
#import "ModelForCollectionFour.h"
#import "UIImageView+WebCache.h"


@interface TableCellOneForCollectionFour ()

@property (nonatomic, retain)UIImageView *picture;

@end

@implementation TableCellOneForCollectionFour

- (void)dealloc {

    [_picture release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews {

    self.picture = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"1.jpg"]];
    self.picture.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 200);
    [self.contentView addSubview:self.picture];
    [self.picture release];
    
}

- (void)passModelForCellOne:(ModelForCollectionFour *)model {

   [self.picture sd_setImageWithURL:[NSURL URLWithString:model.pic]];
 
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
